import service from "@/utils/request";

/**
 * 测试接口
 * @param phone
 * @param pwd
 * @param name
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const registerApi = (phone, pwd, name) => {
    console.log('^^', service, service.post)
    return service.post('/user/login', {
        phone, pwd, name
    }, /*{
        baseURL: 'https://www.baidu.com'
    }*/
    )
}
/*
export default {
    name: 'Home',
    components: {
    },
    setup() {
        onMounted(() => {
            service.post('/user/login', {
                username: 'admin',
                password: '123456'
            }).then(res => {
                console.log(res)
            })
        })
        return {
        }
    }
}
</script>*/
